<template>
    <div style="min-width:829px">
    <div v-if="$route.path == '/authorityList'">
        <div class="vs-search-box">
            <el-form ref="form" :inline="true" :model="paging" label-width="110px">
                <el-form-item label="管理组">
                    <el-select style="width:200px" clearable v-model="paging.username" placeholder="">
                        <el-option label="已预约" value="1"> </el-option>
                        <el-option label="已完成" value="2"> </el-option>
                        <el-option label="已取消" value="3"> </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="" class="vs-right-btns">
                    <el-button @click="reset">重置</el-button>
                    <el-button @click="handleCurrentChange(1)" type="primary">查询</el-button>
                </el-form-item>
            </el-form>
        </div>
        <div class="vs-table-box">
            <el-table v-loading="loading" :data="tableData" header-row-class-name="has-gutter-table" style="width: 100%">
                <el-table-column  label="编号" type="index" width="80px"></el-table-column>
                <el-table-column prop="t1" label="管理组"> </el-table-column>
                <el-table-column label="成员数" >
                    <template slot-scope="scope">
                        <span class="tab-red-text">2</span>
                    </template>     
                </el-table-column>
                <el-table-column prop="t2" label="授权" > </el-table-column>
                <el-table-column fixed="right" width="160" label="操作"> 
                    <template slot-scope="scope">
                        <span @click="dialogFormVisible = true" class="tab-table-text">编辑</span>
                        <span @click="setRow(1,scope.row)" class="tab-red-text">删除</span>
                    </template>
                </el-table-column>
            </el-table>
        </div>
    </div>
     <router-view></router-view>
     <el-dialog title="编辑角色" :visible.sync="dialogFormVisible" width="30%">
        <el-form :model="paging">
            <el-form-item label="管理组名称" >
               <el-input v-model="paging.name" autocomplete="off"></el-input>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button @click="dialogFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogFormVisible = false">保 存</el-button>
        </div>
     </el-dialog>
    </div>
</template>

<script>
export default {
    data() {
        return {
            dialogFormVisible:false,
             options: [
                {
                    value: '正大店',
                    label: '正大店'
                }
            ],
            recordList:[],
            loading:false,
            paging:{
                username:'',//姓名
            },
            tableData: [{
                t1:"足疗",
                t2:'泰式足疗',
                number:1,
            }]
        };
    },
    created() {
       
    },
    methods: {
        async setRow(type,row){
            this.utils.goUrl(`/editMenu?title=编辑菜单`)
            return;
        },
        reset(){//重置
            
        },
        //排序 
        handleChange(ele,value){
            console.log(value,"valuevaluevalue")
        },
    },
};
</script>

<style lang="scss" scoped>

.image-thumbnail{
    width: 130px;
    height: 130px;
}
</style>